package com.xkdx.caipiao.presistence.bank;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;
import com.xkdx.caipiao.module.network.AbsAction.Parameter;

public class GetBundleBanksAction extends AbsAction {

	String uid, logintoken,signcode;

	public GetBundleBanksAction(String uid, String logintoken, String signcode) {
		this.uid = uid;
		this.logintoken = logintoken;
		this.signcode = signcode;

	}

	@Override
	public void constructRequest() {

		HashMap<String, String> userBaseInfoMap = new HashMap<String, String>();
		userBaseInfoMap.put("id", uid);
		userBaseInfoMap.put("logintoken", logintoken);
		userBaseInfoMap.put("signcode", signcode);

		String json1 = constructJson(userBaseInfoMap);
		Parameter parameter1 = new Parameter("User", "MainInfoGet", json1);

		HashMap<String, String> map = new HashMap<String, String>();
		map.put("uid", uid);
		map.put("logintoken", logintoken);

		String json = constructJson(map);
		Parameter parameter = new Parameter("Bank", "getBindBankList", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter1);
		list.add(parameter);

		requestData = constructMod(list);

	}

}
